package ThreadTest;

public class Dome16 {
    public static void main(String[] args)throws InterruptedException {
        Thread t = new Thread(()-> {
            for (int i = 0; i < 5; i++) {
                System.out.println("线程运行中...");
            }
        });
        System.out.println(t.getState());
        t.start();
        t.join();
        System.out.println(t.getState());
    }
}
